var rectIntersert = function (a, b) {
    if (a.y + a.height > b.y) {
        if (a.x > b.x && a.x < b.x + b.width) {
            log('相撞')
            return true
        }
    }
    return false
}

var aInb = function (x, x1, x2) {
    return x >= x1 && x <= x2
}

window.fps = 30
var log = console.log.bind(console)

var _main = function () {
    var game = Director.instance(window.fps, function (dir) {
        var s = new StartScene(dir)
        dir.runWithScene(s)
    })
}

_main()